package com.sm.service.impl;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.sm.entity.Record;
import com.sm.entity.User;
import com.sm.service.RecordService;
import com.sm.util.Constrants;
import com.sm.util.PageQueryUtil;



@Scope("prototype")
@Service("recordService")
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class RecordServiceImpl extends BaseServiceImpl implements RecordService {
	
	/**
	 * 分页查询对应管理的系统用户?-不包括超级管理员
	 * 
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public Map<String, Object> findRecordAll(PageQueryUtil page,Record record)
			throws Exception {
		String hql; 
		
		hql= "select r from Record r where r.isDel=?";
		
		return backPage(hql, page, new Object[] {Constrants.DATA_NOT_DEL });
		
	}


}
